/*
 * @Author: zzd993
 * @Date: 2023-05-19 21:45:31
 * @LastEditors: zzd993
 * @LastEditTime: 2023-06-08 21:09:11
 * @FilePath: \硅谷甄选vue3+ts+vite+echarts+pinia\src\api\user\type.ts
 * Copyright (c) 2023 by ZZD, All Rights Reserved.
 */
//定义用户相关数据的ts类型
//用户登录接口携带参数的ts类型
export interface loginFormData {
  username: string
  password: string
}

//定义全部接口返回数据都拥有ts类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

//定义登录接口返回数据类型
export interface loginResponseData extends ResponseData {
  data: string
}

//定义获取用户信息返回数据类型
export interface userInfoReponseData extends ResponseData {
  data: {
    routes: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
  }
}
